package kr.hkit.powerjava.chapter04;

import java.util.Scanner;

public class Q2 {
	public static void main(String[] ager){
		
		Scanner input= new Scanner(System.in);
		
		int in;
		int buy;
		
		
		System.out.print("받은돈: " );
		in = input.nextInt();
		System.out.print("상품의 총액: ");
		buy = input.nextInt();
		System.out.println("부가세: " + buy /10 );
		int sum = in -buy;
		System.out.println("잔돈: "+ sum);
	}
}
